package com.hksj.Intelligentmanagement.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hksj.Intelligentmanagement.dto.HqEnvironmentHistoryDataDTO;
import com.hksj.Intelligentmanagement.dto.RoomEnvSyncQuery;
import com.hksj.Intelligentmanagement.entity.Orinfotable;
import com.hksj.Intelligentmanagement.vo.HqEnvironmentHistoryDataVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface HqEnvironmentHistoryDataMapper {
    List<HqEnvironmentHistoryDataVo> selectHqEnvironmentHistoryData(@Param("dto") HqEnvironmentHistoryDataDTO dto);

    @DS("hqmysql")
    List<Map<String,Object>> queryTestForHQ();

    List<HqEnvironmentHistoryDataVo> selectHqEnvironmentHistoryData(Page<HqEnvironmentHistoryDataVo> page, @Param("dto") HqEnvironmentHistoryDataDTO dto);

    @DS("hqmysql")
    List<Orinfotable> pageRoomEnv(@Param("query") RoomEnvSyncQuery query, Page<Orinfotable> page);
}
